<?php

namespace teia\webdev\php\admin;

require_once 'DataRegistrationUtil.inc';

if (!isset($file_path) && isset($_REQUEST['file_path'])) {
	$file_path = $_REQUEST['file_path'];
} else {
	$file_path = 'C:\Users\bernardo.quibiana\workspace\teia.admin\rsc\db\products.csv';
}
$db_tb = 'ecom_prod';
$target_cols = array('prod_id', 'prod_name', 'prod_type', 'prod_subtype','prod_brand', 'prod_gender', 'prod_descr', 'prod_price', 'prod_events');

$pass = DataRegistratioinUtil::db_insert_csv($db_tb, $target_cols, $file_path);

echo "\n";

?>